/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightAdjustCar;
import com.sasis.dao.FlightAdjustCarDao;
import com.sasis.service.FlightAdjustCarManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightAdjustCarManagerImpl extends BaseManager implements FlightAdjustCarManager {
    private FlightAdjustCarDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightAdjustCarDao(FlightAdjustCarDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightAdjustCarManager#getFlightAdjustCars(com.sasis.model.FlightAdjustCar)
     */
    public List getFlightAdjustCars(final FlightAdjustCar flightAdjustCar) {
        return dao.getFlightAdjustCars(flightAdjustCar);
    }

   /**
     * @see com.sasis.service.FlightAdjustCarManager#getFlightAdjustCar(String id)
     */
    public FlightAdjustCar getFlightAdjustCar(final String id) {
        return dao.getFlightAdjustCar(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightAdjustCarManager#saveFlightAdjustCar(FlightAdjustCar flightAdjustCar)
     */
    public int saveFlightAdjustCar(FlightAdjustCar flightAdjustCar) {
       return dao.saveFlightAdjustCar(flightAdjustCar);
    }

    /**
     * @see com.sasis.service.FlightAdjustCarManager#removeFlightAdjustCar(String id)
     */
    public void removeFlightAdjustCar(FlightAdjustCar flightAdjustCar) {
        dao.removeFlightAdjustCar( flightAdjustCar);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
